package com.cxps.cloud.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cxps.cloud.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @ClassName UserMapper
 * @Description TODO
 * @Author 郝振坤
 * @Date 2022/1/6 11:50
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Update("update  t_vip  set name=#{name},email={email},createDate=#{createDate},password={password} where id=#{id}")
    void updateUser(User user);

    @Select("select * from t_vip")
    List<User> queryAllDataUser(User user);

}
